﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Sublimation
{
    public class EnemyUnitBoss : EnemyUnit
    {
        new protected int NUMBER_OF_FRAMES_TO_PLAY = 4;
        new protected const int FRAMES_PER_SECOND = 10;

        public EnemyUnitBoss(WorldProperties worldProperties)
            : base(worldProperties)
        {
        }

        protected override void LoadContent()
        {
            base.LoadContent();
            textureAnimator = new AnimatedSprite.AnimatedTexture(Origin, Rotation, Scale, 1.0f);
            textureAnimator.Load(Game.Content, "Sprites\\enemy3", NUMBER_OF_FRAMES_TO_PLAY, FRAMES_PER_SECOND);
            textureAttack = new AnimatedSprite.AnimatedTexture(Origin, Rotation, Scale, 0.8f);
            textureAttack.Load(Game.Content, "Sprites\\enemy3_attack", 8, FRAMES_PER_SECOND);
            Scale = 1f;
        }

        public override void Kill()
        {
            base.Kill();
            if (Life <= 0) new Animation(worldProperties, this, 1.2f, 4, 10, "Sprites\\enemy3_dying");
        }

        public override void setProperties()
        {
            base.setProperties();

            kind = EnemyKind.Boss;
            CollisionRadius = 30f;

            MaxLife = 450;
            MaxSpeed = 30f;
            MaxTurnRadiansPerSec = 0.55f;
            MeleeDamage = 60;
            MeleeAttackDelay = 1200;
            scoreValue = 200;
            //shield = new Shield(worldProperties, this, 30, 30, 5, 1);
        }
    }
}
